package com.huawei.statistics.redis.dao;

import redis.clients.jedis.ShardedJedis;

/**
 * Created by on 2017/4/29.
 */
public interface RedisDataSource {
    public abstract ShardedJedis getRedisClient();//取得redis的客户端
    public void returnResource(ShardedJedis shardedJedis);//将资源返还给pool
    public void returnResource(ShardedJedis shardedJedis, boolean broken);//出现异常后，将资源返还给pool
}
